<div class="ibox">
	<div class="ibox-content">
		<form class="form-horizontal">
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["article.title"]}</label>
				<div class="col-md-3">
					<p class="form-control-static">${article.title!}</p>
				</div>

				<label class="col-sm-2 control-label">${_res["article.classification"]}</label>
				<div class="col-sm-3">
					<p class="form-control-static">${article.catalog.name!}</p>
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<label class="col-sm-2 control-label">${_res["article.status"]}</label>
				<div class="col-sm-3">
					<#dict type="select" value="${article.status!}" class="form-control" name="article.status" 
					dictCode="COMMON_STATUS" disabled="disabled"/>
				</div>

				<label class="col-sm-2 control-label">${_res["article.articleWeight"]}</label>
				<div class="col-sm-3">
					<p class="form-control-static">${article.priority!}</p>
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<script id="container" name="article.content" type="text/plain" style="width:100%; min-height:500px !important">
				${article.content!}
			</script>

			<div class="hr-line-dashed"></div>
			
			<div class="form-group">
				<div class="row">
					<div class="col-md-10 col-md-offset-2">
						<% if(hasPrivilegeUrl("articleList")){ %>
						<button type="button" class="btn btn-warning" onClick="ajaxContent('/cms/article/list')">${_res["system.return"]}</button>
						<% } %>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<#nav />

<script>
		/*加载富文本输入框*/
		var editor = new UE.ui.Editor();  
	    editor.render("container");
	    //判断ueditor 编辑器是否创建成功
        editor.addListener("ready", function () {
	    	// editor准备好之后才可以使用
        	editor.setDisabled();
        });
</script>